Gem Write
(Alteration, Enchantment/Charm)

Range:  10 feet per level
Components:  V, S, M
Duration:  Permanent
Casting Time:  1 round per page
Area of Effect:  One gem
Saving Throw:  None

This spell empowers a gem with the ability to store within its structure written information of any kind - except scroll spells. The gem may store a maximum of five pages of tightly written notes per level or three spell levels per caster level. This written information is strictly non-magically stored within the gem: it is not actually a language or letters but it is encoded in the structure of the gem. This code can only be read by someone who has an active gem read spell. This spell, gem write, cannot be dispelled later by dispel magic nor by an anti-magic shell nor any other kind of magic destroying power - unless the structure of the gem is destroyed or significantly altered.
The gem itself is also a limit to how much it can hold. For each 50 gp worth of gem, one page or one spell level may be stored. That means a gem's capacity is determined by the caster's level and by its worth. The material stored inside the gem stays within the gem indefinitely - unless the gem is destroyed.
If a gem is not filled to capacity, there is a chance that if the gem is altered (like cut apart or cut into a different shape), the material may be found within a piece of the gem. The chance is equal to 100% - 1% per percentage actually used (if a 5000 gp gem (up to 100 pages or 100 spell levels) is made by a 14th-level caster (a maximum of 70 pages or 42 spell levels), bur filled only to 35 pages or 21 spell levels, then the wizard would have a 50% chance to find the information in one of the pieces of the suddenly smashed gem) - 1% per fragment of the gem (the more fragments, the worse).
The material component is a single gem worth at least 50 gp. This gem has to be untarnished by any flaws. This gem then has to be rolled into a single scroll of incomprehendable magic and another scroll of reduction.

